﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

/// <summary>
/// 违章条款对应表
/// </summary>
[Table("QHSE_XY_V_CLAUSE_ASSOCIATION")]
public class QHSESysViolationClauseAssocition : EntityBase
{
    public QHSESysViolationClauseAssocition()
    {
    }

    /// <summary>
    /// ID
    /// </summary>
    [Column("CLAUSE_ASSOCIATION_ID")]
    [MaxLength(32)]
    [Key]
    public string Id { get; set; }


    /// <summary>
    /// 条款ID
    /// </summary>
    [Column("CLAUSE_ID")]
    [MaxLength(32)]
    public string? ClauseId { get; set; }

    /// <summary>
    /// 条款类别编码
    /// </summary>
    [Column("CLAUSE_TYPE_CODE")]
    [MaxLength(32)]
    public string? ClauseTypeCode { get; set; }
    /// <summary>
    /// 违章类别CODE
    /// </summary>
    [Column("VIOLATION_CATEGORY_CODE")]
    [MaxLength(32)]
    public string? ViolationCategoryCode{ get; set; }
    /// <summary>
    /// 对应体系要素编码
    /// </summary>
    [MaxLength(32)]
    [Column("HSE_CODE")]
    public string? HSECode { get; set; }
    /// <summary>
    /// 对应安全沟通类型编码2
    /// </summary>
    [MaxLength(32)]
    [Column("OBSERVE_CODE")]
    public string? ObserveCode { get; set; }
    /// <summary>
    /// 违章级别编码
    /// </summary>
    [Column("VIOLATION_TYPE_CODE")]
    [MaxLength(32)]
    public string? ViolationTypeCode { get; set; }

}

